const startDay = '2023-01-01';
const endDay = '2023-12-31';
const result = {
	expiryInfos: [],
	rulerMaxTime: 0,
	rulerMinTime: 0,
	strategyInfos: []
};
const getTime = (date) => {
	return new Date(date).getTime();
}
const getRange = () => {
	return [
		{
			startTime: getTime('2023-02-01'),
			endTime: getTime('2023-02-10'),
			expiryDuration: null
		},
		{
			startTime: getTime('2023-03-01'),
			endTime: getTime('2023-04-10'),
			expiryDuration: null
		}
	]
}
const getRange1 = () => {
	return [
		{
			startTime: getTime('2023-03-10'),
			endTime: getTime('2023-03-25'),
			expiryDuration: null
		}
	]
}
const getPoint = () => {
	return [
		// {
		// 	strategyOccurrenceTime: getTime('2023-02-05'),
		// 	strategyTypes: ['REPAIR']
		// },
		// {
		// 	strategyOccurrenceTime: getTime('2023-02-06'),
		// 	strategyTypes: ['REPAIR']
		// },
		// {
		// 	strategyOccurrenceTime: getTime('2023-02-07'),
		// 	strategyTypes: ['REPAIR']
		// },
		// {
		// 	strategyOccurrenceTime: getTime('2023-02-08'),
		// 	strategyTypes: ['REPAIR']
		// },
		{
			strategyOccurrenceTime: getTime('2023-02-19'),
			strategyTypes: ['REPAIR']
		},
		// {
		// 	strategyOccurrenceTime: getTime('2023-02-20'),
		// 	strategyTypes: ['REPAIR']
		// }
	]
}
const getPoint1 = () => {
	return [
		// {
		// 	strategyOccurrenceTime: getTime('2023-02-05'),
		// 	strategyTypes: ['REPAIR']
		// },
		// {
		// 	strategyOccurrenceTime: getTime('2023-02-06'),
		// 	strategyTypes: ['REPAIR']
		// },
		// {
		// 	strategyOccurrenceTime: getTime('2023-02-07'),
		// 	strategyTypes: ['REPAIR']
		// },
		// {
		// 	strategyOccurrenceTime: getTime('2023-02-08'),
		// 	strategyTypes: ['REPAIR']
		// },
		{
			strategyOccurrenceTime: getTime('2023-02-19'),
			strategyTypes: ['DEGRADED_REPLACE']
		},
		// {
		// 	strategyOccurrenceTime: getTime('2023-03-25'),
		// 	strategyTypes: ['DEGRADED_REPLACE']
		// }
	]
}
const getBarData = () => {
	return [
		{
			startTime: getTime('2023-01-25'),
			endTime: getTime('2023-02-07'),
			expiryDuration: null,
			intervalType: 'concealment'
		},
		{
			startTime: getTime('2023-03-01'),
			endTime: getTime('2023-04-10'),
			expiryDuration: null,
			intervalType: 'activeDiagnosis'
		},
		{
			startTime: getTime('2023-04-01'),
			endTime: getTime('2023-04-20'),
			expiryDuration: null,
			intervalType: 'passiveDiagnosis'
		},
		{
			startTime: getTime('2023-05-01'),
			endTime: getTime('2023-05-20'),
			expiryDuration: null,
			intervalType: 'renovate'
		},
		{
			startTime: getTime('2023-06-15'),
			endTime: getTime('2023-07-20'),
			expiryDuration: null,
			intervalType: 'renovate'
		},
	]
}
const getBarData1 = () => {
	return [
		{
			startTime: getTime('2023-03-15'),
			endTime: getTime('2023-04-20'),
			expiryDuration: null,
			intervalType: 'concealment'
		},
		{
			startTime: getTime('2023-06-15'),
			endTime: getTime('2023-07-20'),
			expiryDuration: null,
			intervalType: 'renovate'
		},
	]
}

const getOriginalStrategy = () => {
	return [
		{
			startTime: getTime('2023-03-01'),
			endTime: getTime('2023-03-10'),
			pointTime:getTime('2023-03-03')
		},
		{
			startTime: getTime('2023-04-01'),
			endTime: getTime('2023-04-10'),
			pointTime: getTime('2023-04-03')
		},
	]
}
const getOptimizeRecommendations = () => {
	return [
		{
			startTime: getTime('2023-03-01'),
			endTime: getTime('2023-03-05'),
			pointTime: getTime('2023-03-03')
		},
		{
			startTime: getTime('2023-03-05'),
			endTime: getTime('2023-03-10'),
			pointTime: getTime('2023-03-08')
		},
		{
			startTime: getTime('2023-03-17'),
			endTime: getTime('2023-03-25'),
			pointTime: getTime('2023-03-20')
		},
	]
}
const getData = () => {
	result.rulerMinTime = getTime(startDay);
	result.rulerMaxTime = getTime(endDay);
	result.expiryInfos = getRange();
	result.expiryInfos1 = getRange1();
	result.strategyInfos = getPoint();
	result.strategyInfos1 = getPoint1();
	result.barData = getBarData();
	result.barData1 = getBarData1();
	result.originalStrategy = getOriginalStrategy();
	result.optimizeRecommendations = getOptimizeRecommendations();

	return result;
};
export default getData();